/*
 * @Author: HeAo
 * @Date: 2021-10-25 09:20:08
 * @LastEditTime: 2021-10-25 09:24:02
 * @LastEditors: HeAo
 * @Description:
 * @FilePath: \ej-webui\src\store\modules\users.js
 * 别乱动！
 */
import request from '@/utils/request'
export default {
  namespaced: true,
  state () {
    return {
      usersData: {}
    }
  },
  mutations: {
    SET_USERSDATA (state, payload) {
      state.usersData = payload
    }
  },
  actions: {
    async pageQueryUsers ({ commit }, params) {
      let res = await request.get('/baseUser/pageQuery', {
        params
      })
      // 提交突变
      commit('SET_USERSDATA', res.data)
    }
  }
}